package org.jeecg.modules.zhima.portal.service;

import org.jeecg.modules.zhima.admin.entity.ZmPlayer;
import org.jeecg.modules.zhima.portal.domain.Player;

public interface IPlayerService {

    Player getById(String id);

    Player getByUserId(String userId);

    Player getOrAdd(String userId);

    boolean updateById(ZmPlayer zmPlayer);

    /**
     * 选手成功完成一场赛事，计算系统推广奖励积分
     * @param playerId
     * @return
     */
    boolean playSuccess(String playerId);

    /**
     *
     * @param playerId 举办方id
     * @param playerNum 本场赛事参赛人数
     * @return
     */
    boolean playSuccess(String playerId, int playerNum);

}
